package LawsonTransformJava.data;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;


public class TblHREmpUsf {
	public int		employee	=0; 
	public String 	a_field		=null; 
	public float    n_field		=0; 
	public Date		d_field		=null;
	public String 	currency_code	=null; 
	public String 	base_currency	=null; 
	public float	base_amount	=0; 
	public String   field_name      =null;
	
	private DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
	private DateFormat df2 = new SimpleDateFormat("yyyyMMdd");
	private String text; 
	
	
	public void setEmployee(int employee) {
		this.employee = employee;
	}
	public void setA_field(String a_field) {
		this.a_field = a_field;
	}
	public void setN_field(float n_field) {
		this.n_field = n_field;
	}
	public void setD_field(Date d_field) {
		this.d_field = d_field;
	}
	public void setCurrency_code(String currency_code) {
		this.currency_code = currency_code;
	}
	public void setBase_currency(String base_currency) {
		this.base_currency = base_currency;
	}
	public void setBase_amount(float base_amount) {
		this.base_amount = base_amount;
	}
	public void setField_name(String field_name) {
		this.field_name = field_name;
	}
		
	
	public int getEmployee() {
		return employee;
		}
	public String getA_field() {
		if (a_field==null||a_field.equals(""))
		{text = "";}
	else
		{text = "\""+a_field+"\"";}
	return text;		
	}
	public float getN_field() {
		return n_field;
	}
	public String getD_field() {
		if (d_field==null)
		{text = "";}
		else
		{String date =(d_field!=null?df2.format(d_field).toString():""); 
		if (date.equals("17000101"))
			{text = "";}
		else
			{text ="\"" + df.format(d_field).toString() + "\"";;}}
		return text;		
	}
	public String getCurrency_code() {
		if (currency_code==null||currency_code.equals(""))
		{text = "";}
	else
		{text = "\""+currency_code+"\"";}
	return text;		
	}
	public String getBase_currency() {
		if (base_currency==null||base_currency.equals(""))
		{text = "";}
	else
		{text = "\""+base_currency+"\"";}
	return text;		
	}
	public float getBase_amount() {
		return base_amount;
	}
	public String getField_name() {
		if (field_name==null||field_name.equals(""))
		{text = "";}
	else
		{text = "\""+field_name+"\"";}
	return text;		
	}
	
}
